tooltip: Initialize tooltip coords to given event coords
authorTimm Bäder <mail@baedert.org>
Fri, 26 Apr 2019 05:34:18 +0000 (07:34 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 26 Apr 2019 16:05:32 +0000 (18:05 +0200)
Otherwise the coordinates passed to the query-tooltip signal are always
0.

gtk/gtktooltip.c

index 794d65c30d355a1bb80a64e2e4c95a79d7483a93..22a7e68b1fa7a223046427683814597d975b3d0a 100644 (file)
@@ -923,7 +923,7 @@ gtk_tooltip_handle_event_internal (GdkEventType   event_type,
                                    gdouble       dx,
                                    gdouble       dy)
 {
-  int x = 0, y = 0;
+  int x = dx, y = dy;
   GdkDisplay *display;
   GtkTooltip *current_tooltip;